﻿//V: 0.001 Hector Nieves - Daniel Segura
// rework help page. Add Skill Images and text about of game.

namespace Game
{
    class Help
    {
        public void Run()
        {
            Image skill1 = new Image("data/1.png");
            Image skill2 = new Image("data/2.png");
            Image skill3 = new Image("data/3.png");
            Image skill4 = new Image("data/4.png");
            Image skill5 = new Image("data/5.png");
            Image skill6 = new Image("data/6.png");
            Image skill7 = new Image("data/7.png");
            Image skill8 = new Image("data/8.png");
            Image skill9 = new Image("data/9.png");
            Image skill10 = new Image("data/10.png");
            Font sans18;
            Font sans12;
            Font sans15;
            Font sans10;
            sans18 = new Font("data/Joystix.ttf", 18);
            sans12 = new Font("data/Joystix.ttf", 12);
            sans15 = new Font("data/Joystix.ttf", 15);
            sans10 = new Font("data/Joystix.ttf", 10);
            

            Hardware.ClearScreen();
            Hardware.WriteHiddenText("Lemmings is divided into a number of levels, ",
                20, 50,
                0xCC, 0xCC, 0xCC,
                sans12);
            Hardware.WriteHiddenText("grouped into four difficulty categories.  ",
                20, 70,
                0xCC, 0xCC, 0xCC,
                sans12);
            Hardware.WriteHiddenText("Each level includes some or all of the following elements:",
                20, 90,
                0xCC, 0xCC, 0xCC,
                sans12);
            Hardware.WriteHiddenText("entrance points (at least one per level), ",
                20, 110,
                0xCC, 0xCC, 0xCC,
                sans12);
            Hardware.WriteHiddenText("exits (at least one per level), destructible landscape elements such as",
                20, 130,
                0xCC, 0xCC, 0xCC,
                sans12);
            Hardware.WriteHiddenText("rocks or soil, indestructible elements such as steel plates, ",
               20, 150,
               0xCC, 0xCC, 0xCC,
               sans12);
            Hardware.WriteHiddenText("and obstacles including chasms, high walls,",
                20, 170,
                0xCC, 0xCC, 0xCC,
                sans12);
            Hardware.WriteHiddenText("large drops, pools of water or lava, and booby traps. ",
               20, 190,
               0xCC, 0xCC, 0xCC,
               sans12);

            // Image-Skill Zone

            Hardware.WriteHiddenText("SKILL INFORMATION",
               90, 250,
               0xCC, 0xCC, 0xCC,
               sans10);
            Hardware.WriteHiddenText("Parachuter: lemming falls slowly",
               90, 320,
               0xCC, 0xCC, 0xCC,
               sans10);
            Hardware.WriteHiddenText("Destroy un lemming",
               90, 390,
               0xCC, 0xCC, 0xCC,
               sans10);
            Hardware.WriteHiddenText("SKILL INFORMATION",
               90, 460,
               0xCC, 0xCC, 0xCC,
               sans10);
            Hardware.WriteHiddenText("SKILL INFORMATION",
              90, 530,
              0xCC, 0xCC, 0xCC,
              sans10);


            Hardware.WriteHiddenText("SKILL INFORMATION",
               400, 250,
               0xCC, 0xCC, 0xCC,
               sans10);
            Hardware.WriteHiddenText("SKILL INFORMATION",
               400, 320,
               0xCC, 0xCC, 0xCC,
               sans10);
            Hardware.WriteHiddenText("SKILL INFORMATION",
               400, 390,
               0xCC, 0xCC, 0xCC,
               sans10);
            Hardware.WriteHiddenText("SKILL INFORMATION",
               400, 460,
               0xCC, 0xCC, 0xCC,
               sans10);
            Hardware.WriteHiddenText("SKILL INFORMATION",
               400, 530,
               0xCC, 0xCC, 0xCC,
               sans10);
            //Draw Images

            Hardware.DrawHiddenImage(skill1, 50, 230);
            Hardware.DrawHiddenImage(skill2, 50, 300);
            Hardware.DrawHiddenImage(skill3, 50, 370);
            Hardware.DrawHiddenImage(skill4, 50, 440);
            Hardware.DrawHiddenImage(skill9, 50, 510);

            Hardware.DrawHiddenImage(skill5, 350, 230);
            Hardware.DrawHiddenImage(skill6, 350, 300);
            Hardware.DrawHiddenImage(skill7, 350, 370);
            Hardware.DrawHiddenImage(skill8, 350, 440);
            Hardware.DrawHiddenImage(skill10, 350, 510);

            
            Hardware.WriteHiddenText("Hit ESC to return",
                600, 560,
                0, 176, 0,
                sans12);
            Hardware.ShowHiddenScreen();
            do
            {
                Hardware.Pause(20);
            }
            while (!Hardware.KeyPressed(Hardware.KEY_ESC));
        }
    }
}
